<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../resources/js/d3.js"></script>
</head>
<body>
    <p id="target"></p>
    <script type="text/javascript" >
        d3.select("p#target")
                .text("Hello world!");
        d3.select("p").attr("foo", "goo");

        console.log(d3.select("p").attr("foo"));

        d3.select("p").style("font-size", function(){
            return 20 + 10;
        })
    </script>
</body>
</html>